<?php
namespace app\admin\controller;

use think\Request;

class Index extends Admin{
    /**
     * 当前模块参数
     */
    protected function _infoModule(){
        return array(
            'info' => array(
                'name' => '管理首页',
                'description' => '站点运行信息',
            ),
            'menu' => array(
                array(
                    'name' => '首页',
                    'url' => url('index'),
                    'icon' => 'list',
                ),
            ),
        );
    }
    public function index(){
        //前台引导
        $this->assign('home_url',model('HomeUrl')->loadList());
        $this->assign('langList',model('Lang')->loadList());
        $this->assign('loginUserInfo',$this->loginUserInfo);
        return $this->fetch();
    }
    //控制台
    public function home(){
        return $this->fetch();
    }
    //后台菜单
    public function menu(){
        $list = model('admin/menu')->menuLoadlist();
        $this->assign('list',$list);
        return $this->fetch();
    }
}
